﻿using iMES.Entity.SystemModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace iMES.Entity.DomainModels
{
    [Entity(TableCnName = "工人工时", TableName = "WorkingHours", DBServer = "SysDbContext")]
    public partial class WorkingHours : SysEntity
    {
        /// <summary>
        ///工人工时主键
        /// </summary>
        [Key]
        [Display(Name = "工人工时主键")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public Guid WorkingHoursId { get; set; }

        /// <summary>
        ///生产计划主键
        /// </summary>
        [Display(Name = "生产计划主键")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public Guid ProductionPlanningId { get; set; }

        /// <summary>
        ///工人编号
        /// </summary>
        [Display(Name = "工人编号")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string? WorkerCode { get; set; }

        // <summary>
        ///工人编号
        /// </summary>
        [Display(Name = "工人名称")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string? WorkerName { get; set; }

        // <summary>
        ///工人编号
        /// </summary>
        [Display(Name = "部门")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string? Department { get; set; }
        // <summary>
        ///工人编号
        /// </summary>
        [Display(Name = "班组")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string? Team { get; set; }
        // <summary>
        ///工人编号
        /// </summary>
        [Display(Name = "状态")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string? WorkerState { get; set; }
    }
}
